from tjob.utils import JobInfo


class BaseHandler:
    def __init__(self) -> None:
        pass

    @property
    def info(self) -> JobInfo:
        if hasattr(self, "_submit_info"):
            return self._submit_info
        else:
            return JobInfo(None, None, None)

    def submit(self):
        """submit job"""
        pass
